/* 2.1 字符、字符串和整数类型
 * 注意：有符号数和无符号数的区别，int的字长
 */

#include <stdio.h>

#define PRINT(format,x) printf(#x " = %" #format "\n", x)

int integer = 5;
char character = '5';
char *string = "5";

int main()
{
    PRINT(d, string);
    PRINT(d,character);
    PRINT(d,integer);
    PRINT(s,string);
    PRINT(c,character);
    PRINT(c,integer=53);
    PRINT(d,('5'>5));
    {
        int x = -2;
        unsigned int ux = -2;
        PRINT(o, x);
        PRINT(o, ux);
        PRINT(d, x/2);
        PRINT(d, ux/2);
        PRINT(o, x >> 1);
        PRINT(o, ux >> 1);
        PRINT(d, x>>1);
        PRINT(d, ux >>1);
    }
    return 0;
}
